package com.aidex.biz.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 人员信息基础对象 biz_person_info
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2025-02-10
 */
@Data
public class PersonInfo extends BaseEntity<PersonInfo> {
    private static final long serialVersionUID = 1L;


    /**
     * 公司ID
     */
    private String companyId;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String name;

    /**
     * 姓名
     */
    @Excel(name = "所属企业")
    private String companyName;

    /**
     * 政治面貌
     */
    @Excel(name = "政治面貌")
    private String mianmao;

    /**
     * 职务
     */
    @Excel(name = "职务")
    private String zhiwu;

    /**
     * 联系方式
     */
    @Excel(name = "联系方式")
    private String phone;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private String sex;

    /**
     * 籍贯
     */
    @Excel(name = "籍贯")
    private String jiguan;


    private String dangwei;


    private String dangzuzi;

    private String danngzhongzhi;

    @Excel(name = "所在基层党组织")
    private String dangzhibu;


    /**
     * 档案名称
     */
    private String dananName;

    /**
     * 文件地址
     */
    private String dananUrl;

    /**
     * 排序
     */
    private Long sort;

    /**
     * 状态（0正常 1 停用）
     */

    private String status;


    private String birthday;// 出生日期

    private Integer age;// 年龄 计算


    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setMianmao(String mianmao) {
        this.mianmao = mianmao;
    }

    public String getMianmao() {
        return mianmao;
    }

    public void setZhiwu(String zhiwu) {
        this.zhiwu = zhiwu;
    }

    public String getZhiwu() {
        return zhiwu;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSex() {
        return sex;
    }

    public void setJiguan(String jiguan) {
        this.jiguan = jiguan;
    }

    public String getJiguan() {
        return jiguan;
    }

    public void setDananName(String dananName) {
        this.dananName = dananName;
    }

    public String getDananName() {
        return dananName;
    }

    public void setDananUrl(String dananUrl) {
        this.dananUrl = dananUrl;
    }

    public String getDananUrl() {
        return dananUrl;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getSort() {
        return sort;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("userId", getUserId()).append("deptId"
                , getDeptId()).append("userName", getUserName()).append("deptName", getDeptName()).append("companyId"
                , getCompanyId()).append("name", getName()).append("mianmao", getMianmao()).append("zhiwu",
                getZhiwu()).append("phone", getPhone()).append("sex", getSex()).append("jiguan", getJiguan()).append(
                        "dananName", getDananName()).append("dananUrl", getDananUrl()).append("sort", getSort()).append("status", getStatus()).append("remark", getRemark()).append("id", getId()).append("createBy", getCreateBy()).append("createDept", getCreateDept()).append("createTime", getCreateTime()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("updateIp", getUpdateIp()).append("version", getVersion()).append("delFlag", getDelFlag()).toString();
    }
}
